﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Triples
{
    class TripleTest
    {
        static void Main(string[] args)
        {
            Triple first = new Triple(1, 2, 3);
            Triple second = new Triple(-5, -2, 3);

            Triple sum = first + second;
            //Console.WriteLine("Sum:{0}",sum);

            //Triple difference = first - second;
            //Console.WriteLine("Diff:{0}",difference);

            //Console.WriteLine("Increment:{0}",first);

            Triple third = first.Clone() as Triple;

            //Console.WriteLine("Before changing the value:");
            //Console.WriteLine(first);
            //Console.WriteLine((-250,0 , 3000);
            //Console.WriteLine("After changing the value:");
            //third.A = 500;
            //Console.WriteLine(first);
            //Console.WriteLine(third);

            List<Triple> triples = new List<Triple>();
            triples.Add(first);
            triples.Add(second);
            triples.Add(third);


            Match match = Triple.FindAllTriplesInText("../../TripleTest.cs");

                while(match.Success)
                {
                    Console.WriteLine(match.Value);
                    match= match.NextMatch();
                }

            //Console.WriteLine(triples.AsString());
        }
    }
}
